// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-model.ts.hbs生成
import { IGridModel, IParam, isEmpty, VerifyUtil } from '@/core';

function getModel(): IGridModel {
	return {
        cssName: "",        
		aggMode: 'NONE',
		caption: '',
		controlType: 'GRID',
		codeName: 'Main',      
		columns: getGridColumns(),
		dataItems: getGridDataItems(),
		dataExport: getDataExport(),
		enableRowEdit: false,
		entityCodeName: 'IBIZBOOK',
		entityLogicName: '图书',
		createDefaultItems: getCreateDefaultItems(),
        updateDefaultItems: getUpdateDefaultItems(),
		name: 'grid',
		noSort: false,
		rules: {
            //	静态值规则
            staticRules: {
		    },
            //	编辑项值规则
            editRules: [
			]
    	},
		showHeader: true,
		sortDir: '',
		sortField: '',
		limit: 20,
		dataImport: {
			codeName: 'DataImport',
			ignoreError: false,
			importItems: [
				{
					name: 'author',
					caption: App.ts('DEF.LNAME.AUTHOR', '图书作者'),
				},
				{
					name: 'booknumber',
					caption: App.ts('DEF.LNAME.BOOKNUMBER', '图书数量'),
				},
				{
					name: 'borrowway',
					caption: App.ts('DEF.LNAME.BORROWWAY', '借阅方式'),
					codeListTag: 'Sample__CodeList25',
				},
				{
					name: 'ibizbookid',
					caption: App.ts('DEF.LNAME.IBIZBOOKID', '图书标识'),
				},
				{
					name: 'ibizbookname',
					caption: App.ts('DEF.LNAME.IBIZBOOKNAME', '图书名称'),
				},
				{
					name: 'press',
					caption: App.ts('DEF.LNAME.PRESS', '图书出版社'),
				},
				{
					name: 'price',
					caption: App.ts('DEF.LNAME.PRICE', '图书价格'),
				},
				{
					name: 'sailstate',
					caption: App.ts('DEF.LNAME.SAILSTATE', '图书销售状态'),
					codeListTag: 'Sample__BookSailState',
				},
				{
					name: 'subtext',
					caption: App.ts('DEF.LNAME.SUBTEXT', '图书描述'),
				},
				{
					name: 'tag',
					caption: App.ts('DEF.LNAME.TAG', '标签'),
				},
				{
					name: 'type',
					caption: App.ts('DEF.LNAME.TYPE', '图书类型'),
					codeListTag: 'Sample__BookType',
				}
			]
		},
		paging: {
			defaultPageSize: 20,
		},
		ctrlMsgModel:[
    ],
		uiEngineModel: [
            {
                name: 'printSelection',
                triggerType: 'CTRLEVENT',
                logicType: 'SCRIPT',
                eventNames: 'onSelectionChange',
                scriptCode: `console.log(data);`,
                entityCodeName: '',
                logicName:``
            },
            {
                name: 'cancelSelect',
                triggerType: 'CTRLEVENT',
                logicType: 'DEUILOGIC',
                eventNames: 'onSelectionChange',
                scriptCode: ``,
                entityCodeName: 'IBIZBOOK',
                logicName:`cancelSelect`
            },
            {
                name: 'timerLogic',
                triggerType: 'TIMER',
                logicType: 'SCRIPT',
                eventNames: '',
                scriptCode: `console.log('表格逻辑触发，定时器打印输出...');`,
                entityCodeName: '',
                logicName:``
            },
            {
                name: 'engine_grid',
                triggerType: 'CTRLEVENT',
                logicType: 'APPVIEWENGINE',
                eventNames: 'ROWDBLCLICK;SELECTIONCHANGE;REMOVE;LOAD;BEFORELOAD',
                scriptCode: ``,
                entityCodeName: '',
                logicName:``
            }
    ]
    }
}
//  获取所有表格列模型
function getGridColumns():IParam[] {
  return [
		{
			align: 'left',
			codeName: 'ibizbookname',
			caption: '图书名称',
			captionLanResTag: 'DEF.LNAME.IBIZBOOKNAME',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'ibizbookname',
			dataIndex: 'ibizbookname',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书名称',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'ibizbookname',
		    width: 150,
		    minWidth: 150,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'updateman',
			caption: '更新人',
			captionLanResTag: 'DEF.LNAME.UPDATEMAN',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'common__SysOperator',
			dataItemName: 'updateman',
			dataIndex: 'updateman',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '更新人',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'updateman',
		    width: 150,
		    minWidth: 150,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'updatedate',
			caption: '更新时间',
			captionLanResTag: 'DEF.LNAME.UPDATEDATE',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'updatedate',
			dataIndex: 'updatedate',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '更新时间',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'updatedate',
		    width: 150,
		    minWidth: 150,
		    resizable: true,
			stdDataType: 5,
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
		},
		{
			align: 'left',
			codeName: 'icon',
			caption: '图标',
			captionLanResTag: 'DEF.LNAME.ICON',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'icon',
			dataIndex: 'icon',
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: false,
			excelCaption: '图标',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'icon',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 21,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'booknumber',
			caption: '图书数量',
			captionLanResTag: 'DEF.LNAME.BOOKNUMBER',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'booknumber',
			dataIndex: 'booknumber',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书数量',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'booknumber',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 9,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrowway',
			caption: '借阅方式',
			captionLanResTag: 'DEF.LNAME.BORROWWAY',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'Sample__CodeList25',
			dataItemName: 'borrowway',
			dataIndex: 'borrowway',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '借阅方式',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrowway',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'tag',
			caption: '标签',
			captionLanResTag: 'DEF.LNAME.TAG',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'tag',
			dataIndex: 'tag',
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: false,
			excelCaption: '标签',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'tag',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 21,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrower3',
			caption: '借阅人3',
			captionLanResTag: 'DEF.LNAME.BORROWER3',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrower3',
			dataIndex: 'borrower3',
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: false,
			excelCaption: '借阅人3',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrower3',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 21,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'createman',
			caption: '建立人',
			captionLanResTag: 'DEF.LNAME.CREATEMAN',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'common__SysOperator',
			dataItemName: 'createman',
			dataIndex: 'createman',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '建立人',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'createman',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrowstatus',
			caption: '图书借阅状态',
			captionLanResTag: 'DEF.LNAME.BORROWSTATUS',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrowstatus',
			dataIndex: 'borrowstatus',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书借阅状态',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrowstatus',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 9,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'createdate',
			caption: '建立时间',
			captionLanResTag: 'DEF.LNAME.CREATEDATE',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'createdate',
			dataIndex: 'createdate',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '建立时间',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'createdate',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 5,
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
		},
		{
			align: 'left',
			codeName: 'type',
			caption: '图书类型',
			captionLanResTag: 'DEF.LNAME.TYPE',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'Sample__BookType',
			dataItemName: 'type',
			dataIndex: 'type',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书类型',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'type',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'author',
			caption: '图书作者',
			captionLanResTag: 'DEF.LNAME.AUTHOR',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'author',
			dataIndex: 'author',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书作者',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'author',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'stepstatus',
			caption: '步骤',
			captionLanResTag: 'DEF.LNAME.STEPSTATUS',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'stepstatus',
			dataIndex: 'stepstatus',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '步骤',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'stepstatus',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'sailstate',
			caption: '图书销售状态',
			captionLanResTag: 'DEF.LNAME.SAILSTATE',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'Sample__BookSailState',
			dataItemName: 'sailstate',
			dataIndex: 'sailstate',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书销售状态',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'sailstate',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'subtext',
			caption: '图书描述',
			captionLanResTag: 'DEF.LNAME.SUBTEXT',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'subtext',
			dataIndex: 'subtext',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '图书描述',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'subtext',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'returnlib',
			caption: '归还图馆',
			captionLanResTag: 'DEF.LNAME.RETURNLIB',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
		    codeListTag: 'Sample__CodeList',
			dataItemName: 'returnlib',
			dataIndex: 'returnlib',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '归还图馆',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'returnlib',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrower1',
			caption: '借阅人1',
			captionLanResTag: 'DEF.LNAME.BORROWER1',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrower1',
			dataIndex: 'borrower1',
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: false,
			excelCaption: '借阅人1',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrower1',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 21,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrowerid',
			caption: '借阅人ID',
			captionLanResTag: 'DEF.LNAME.BORROWERID',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrowerid',
			dataIndex: 'borrowerid',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '借阅人ID',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrowerid',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrower2',
			caption: '借阅人2',
			captionLanResTag: 'DEF.LNAME.BORROWER2',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrower2',
			dataIndex: 'borrower2',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '借阅人2',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrower2',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrower1_id',
			caption: '借阅人1_ID',
			captionLanResTag: 'DEF.LNAME.BORROWER1_ID',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrower1_id',
			dataIndex: 'borrower1_id',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '借阅人1_ID',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrower1_id',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'array',
			caption: '数组',
			captionLanResTag: '',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLES",
			dataItemName: 'array',
			dataIndex: 'array',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '数组',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'array',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
		{
			align: 'left',
			codeName: 'borrower3_id',
			caption: '借阅人3_ID',
			captionLanResTag: 'DEF.LNAME.BORROWER3_ID',
			cellCssName: '',
			columnType: 'DEFGRIDCOLUMN',
		    valueType: "SIMPLE",
			dataItemName: 'borrower3_id',
			dataIndex: 'borrower3_id',
		    sorter: true,
			enableRowEdit: false,
			customFilterDropdown: false,
		    filterName: '',
		    filterCodeListTag: '',
		    filterCodeListType: '',
			enableSort: true,
			excelCaption: '借阅人3_ID',
			headerCssName: '',
			show: true,
			hiddenDataItem: false,
			name: 'borrower3_id',
		    width: 100,
		    minWidth: 100,
		    resizable: true,
			stdDataType: 25,
			valueFormat: '',
		},
  ];
}

//  获取所有表格数据项
function getGridDataItems() {
  return [
    {
			name: 'ibizbookname',
			codeName: '',
            customCode: false,
			fieldCodeName: 'ibizbookname',
			fieldName: 'ibizbookname',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'updateman',
			codeName: '',
            customCode: false,
			fieldCodeName: 'updateman',
			fieldName: 'updateman',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'updatedate',
			codeName: '',
            customCode: false,
			fieldCodeName: 'updatedate',
			fieldName: 'updatedate',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			dataType: '5'
    },
    {
			name: 'icon',
			codeName: '',
            customCode: false,
			fieldCodeName: 'icon',
			fieldName: 'icon',
			valueFormat: '',
			dataType: '21'
    },
    {
			name: 'booknumber',
			codeName: '',
            customCode: false,
			fieldCodeName: 'booknumber',
			fieldName: 'booknumber',
			valueFormat: '',
			dataType: '9'
    },
    {
			name: 'borrowway',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrowway',
			fieldName: 'borrowway',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'tag',
			codeName: '',
            customCode: false,
			fieldCodeName: 'tag',
			fieldName: 'tag',
			valueFormat: '',
			dataType: '21'
    },
    {
			name: 'borrower3',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrower3',
			fieldName: 'borrower3',
			valueFormat: '',
			dataType: '21'
    },
    {
			name: 'createman',
			codeName: '',
            customCode: false,
			fieldCodeName: 'createman',
			fieldName: 'createman',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'borrowstatus',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrowstatus',
			fieldName: 'borrowstatus',
			valueFormat: '',
			dataType: '9'
    },
    {
			name: 'createdate',
			codeName: '',
            customCode: false,
			fieldCodeName: 'createdate',
			fieldName: 'createdate',
			valueFormat: 'YYYY-MM-DD HH:mm:ss',
			dataType: '5'
    },
    {
			name: 'type',
			codeName: '',
            customCode: false,
			fieldCodeName: 'type',
			fieldName: 'type',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'author',
			codeName: '',
            customCode: false,
			fieldCodeName: 'author',
			fieldName: 'author',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'stepstatus',
			codeName: '',
            customCode: false,
			fieldCodeName: 'stepstatus',
			fieldName: 'stepstatus',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'sailstate',
			codeName: '',
            customCode: false,
			fieldCodeName: 'sailstate',
			fieldName: 'sailstate',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'subtext',
			codeName: '',
            customCode: false,
			fieldCodeName: 'subtext',
			fieldName: 'subtext',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'returnlib',
			codeName: '',
            customCode: false,
			fieldCodeName: 'returnlib',
			fieldName: 'returnlib',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'borrower1',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrower1',
			fieldName: 'borrower1',
			valueFormat: '',
			dataType: '21'
    },
    {
			name: 'borrowerid',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrowerid',
			fieldName: 'borrowerid',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'borrower2',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrower2',
			fieldName: 'borrower2',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'borrower1_id',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrower1id',
			fieldName: 'borrower1_id',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'array',
			codeName: '',
            customCode: false,
			fieldCodeName: 'array',
			fieldName: 'array',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'borrower3_id',
			codeName: '',
            customCode: false,
			fieldCodeName: 'borrower3_id',
			fieldName: 'borrower3_id',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'ibizbookid',
			codeName: '',
            customCode: false,
			fieldCodeName: 'ibizbookid',
			fieldName: 'ibizbookid',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'srfkey',
			codeName: '',
            customCode: false,
			fieldCodeName: 'ibizbookid',
			fieldName: 'ibizbookid',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'srfdataaccaction',
			codeName: '',
            customCode: false,
			fieldCodeName: 'ibizbookid',
			fieldName: 'ibizbookid',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'srfmajortext',
			codeName: '',
            customCode: false,
			fieldCodeName: 'ibizbookname',
			fieldName: 'ibizbookname',
			valueFormat: '',
			dataType: '25'
    },
    {
			name: 'srfmstag',
			codeName: '',
            customCode: false,
    },
  ];
}

function getDataExport() {
	return {
        default: true,
		codeName: 'default',
		enableFront: true,
		fileName: '图书',
		exportItems: [
			{
				name: 'ibizbookname',
				label: '图书名称',
  				labelLanResTag: 'DEF.LNAME.IBIZBOOKNAME',
				dataType: 25,
				show: true
			},
			{
				name: 'updateman',
				label: '更新人',
  				labelLanResTag: 'DEF.LNAME.UPDATEMAN',
				dataType: 25,
				codeListTag: 'common__SysOperator',
				show: true
			},
			{
				name: 'updatedate',
				label: '更新时间',
  				labelLanResTag: 'DEF.LNAME.UPDATEDATE',
				dataType: 5,
				valueFormat: 'YYYY-MM-DD HH:mm:ss',
				show: true
			},
			{
				name: 'icon',
				label: '图标',
  				labelLanResTag: 'DEF.LNAME.ICON',
				dataType: 21,
				show: true
			},
			{
				name: 'booknumber',
				label: '图书数量',
  				labelLanResTag: 'DEF.LNAME.BOOKNUMBER',
				dataType: 9,
				show: true
			},
			{
				name: 'borrowway',
				label: '借阅方式',
  				labelLanResTag: 'DEF.LNAME.BORROWWAY',
				dataType: 25,
				codeListTag: 'Sample__CodeList25',
				show: true
			},
			{
				name: 'tag',
				label: '标签',
  				labelLanResTag: 'DEF.LNAME.TAG',
				dataType: 21,
				show: true
			},
			{
				name: 'borrower3',
				label: '借阅人3',
  				labelLanResTag: 'DEF.LNAME.BORROWER3',
				dataType: 21,
				show: true
			},
			{
				name: 'createman',
				label: '建立人',
  				labelLanResTag: 'DEF.LNAME.CREATEMAN',
				dataType: 25,
				codeListTag: 'common__SysOperator',
				show: true
			},
			{
				name: 'borrowstatus',
				label: '图书借阅状态',
  				labelLanResTag: 'DEF.LNAME.BORROWSTATUS',
				dataType: 9,
				show: true
			},
			{
				name: 'createdate',
				label: '建立时间',
  				labelLanResTag: 'DEF.LNAME.CREATEDATE',
				dataType: 5,
				valueFormat: 'YYYY-MM-DD HH:mm:ss',
				show: true
			},
			{
				name: 'type',
				label: '图书类型',
  				labelLanResTag: 'DEF.LNAME.TYPE',
				dataType: 25,
				codeListTag: 'Sample__BookType',
				show: true
			},
			{
				name: 'author',
				label: '图书作者',
  				labelLanResTag: 'DEF.LNAME.AUTHOR',
				dataType: 25,
				show: true
			},
			{
				name: 'stepstatus',
				label: '步骤',
  				labelLanResTag: 'DEF.LNAME.STEPSTATUS',
				dataType: 25,
				show: true
			},
			{
				name: 'sailstate',
				label: '图书销售状态',
  				labelLanResTag: 'DEF.LNAME.SAILSTATE',
				dataType: 25,
				codeListTag: 'Sample__BookSailState',
				show: true
			},
			{
				name: 'subtext',
				label: '图书描述',
  				labelLanResTag: 'DEF.LNAME.SUBTEXT',
				dataType: 25,
				show: true
			},
			{
				name: 'returnlib',
				label: '归还图馆',
  				labelLanResTag: 'DEF.LNAME.RETURNLIB',
				dataType: 25,
				codeListTag: 'Sample__CodeList',
				show: true
			},
			{
				name: 'borrower1',
				label: '借阅人1',
  				labelLanResTag: 'DEF.LNAME.BORROWER1',
				dataType: 21,
				show: true
			},
			{
				name: 'borrowerid',
				label: '借阅人ID',
  				labelLanResTag: 'DEF.LNAME.BORROWERID',
				dataType: 25,
				show: true
			},
			{
				name: 'borrower2',
				label: '借阅人2',
  				labelLanResTag: 'DEF.LNAME.BORROWER2',
				dataType: 25,
				show: true
			},
			{
				name: 'borrower1_id',
				label: '借阅人1_ID',
  				labelLanResTag: 'DEF.LNAME.BORROWER1_ID',
				dataType: 25,
				show: true
			},
			{
				name: 'array',
				label: '数组',
  				labelLanResTag: '',
				dataType: 25,
				show: true
			},
			{
				name: 'borrower3_id',
				label: '借阅人3_ID',
  				labelLanResTag: 'DEF.LNAME.BORROWER3_ID',
				dataType: 25,
				show: true
			}
		]
	}
}

function getCreateDefaultItems() {
	return [
	]
}

function getUpdateDefaultItems() {
	return [
	];
}

export const model = getModel();